package com.ssy.lingxi.settle.accounts.handler.annotation;

import com.ssy.lingxi.settle.accounts.handler.validator.ReconciliationStatusValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * 对账单状态参数校验注解
 * @author Saske
 * @version 2.0.0
 * @date 2021-12-8
 */
@Target({ElementType.TYPE, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = ReconciliationStatusValidator.class)
public @interface ReconciliationStatusAnnotation {

    String message() default "对账单状态不在定义范围内";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
